REPO:=

deploy: build
	scp repo/build/*.war creativity\:/www/tomcat/.

repo: repo-clean
ifeq ($(strip $(REPO)),)
		hg clone https://creativity-engine.googlecode.com/hg/ repo
else 
		hg clone https://$(REPO).creativity-engine.googlecode.com/hg/ repo
endif

build: repo
	$(MAKE) -C repo/build/
	#cd repo/build/Makefile; \
	#make repo/build/Makefile
	#ant -f repo/build/build.xml

.PHONY: deploy build

repo-clean:
	rm -rf repo
